package com.ghh.dao;

import com.ghh.domain.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserDao {

    @Insert("insert into user values (null,#{userName},#{password},#{realName},#{gender},#{birthday})")
    int save(User user);

    @Select("select * from user")
    List<User> findAll();
}
